#ifndef _BUILDING_H
#define _BUILDING_H

/*
 *  building.h
 *  openFrameworks
 *
 *  Created by Mar Canet Sola on 17/06/09.
 *  Copyright 2009 __MyCompanyName__. All rights reserved.
 *
 */
#include "Frame.h"
/*
#include "SideMainBuildingNorth.h"
#include "SideMainBuildingEast.h"
#include "SideMainBuildingWest.h"
#include "SideMainBuildingSouth.h"
*/
class building{
public:	
	/*
	SideMainBuildingSouth* theSouthSide;
	SideMainBuildingEast*  theEastSide;
	SideMainBuildingWest*  theWestSide;
	*/
	//SideMainBuildingNorth* theNorthSide;
	FrameBuffer* myFrameBuffer;
//--------------------------------------------------------------	

	building(string ip)
	{
		/*
		theSouthSide = new SideMainBuildingSouth();
		theEastSide  = new SideMainBuildingEast();
		theWestSide  = new SideMainBuildingWest();
		 */
		//theNorthSide = new SideMainBuildingNorth();

		myFrameBuffer  = new FrameBuffer(ip); 
	}
//--------------------------------------------------------------

	void cleanColor(){
		myFrameBuffer->cleanColor();
	}
//--------------------------------------------------------------

	void flush()
	{
		myFrameBuffer->flush();
	}
//--------------------------------------------------------------

	void setWindowColor(unsigned short address, unsigned char r, unsigned char g, unsigned char b)
	{
		myFrameBuffer->setColor(address, r, g, b); 
	}
//--------------------------------------------------------------

	ofColor getWindowColor(unsigned short address)
	{		
		return myFrameBuffer->getColor(address);
	}
//--------------------------------------------------------------

};

#endif